package org.example;

import java.util.Scanner;

public class 第1题 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long n = sc.nextLong();
        for (int i = 1; i < n; i++) {
            if (n%i==0){
                System.out.println(n/i);
            }

        }
    }
}
